﻿<!-- application/layouts/scripts/layout.phtml -->
<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="google-site-verification" content="BvqKnLjb8E9H8dBwSjHsZiVq1D0SW8X0dhwCoYhf6Uc" />
        <title>LogisticWay</title>        
        <?php $this->headLink()->prependStylesheet('/css/theme-1.css'); ?>
        <?php $this->headLink()->prependStylesheet('/css/jquery.fancybox-1.3.4.css'); ?>
        <?php $this->headLink()->prependStylesheet('/css/other.css'); ?>
        <?php $this->headLink()->prependStylesheet('/css/form.css'); ?>
        <?php $this->headScript()->prependFile('/js/superfish.js'); ?>
        <?php $this->headScript()->prependFile('/js/slides.min.jquery'); ?>
        <?php $this->headScript()->prependFile('/js/twitter.min.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.fancybox-1.3.4.pack.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.validate.min.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.scrollTo-1.4.2-min.js'); ?>
        <?php $this->headScript()->prependFile('/js/styleswitcher.js'); ?>
        <?php $this->headScript()->prependFile('/js/onload.js'); ?>
        <?php $this->headScript()->prependFile('/js/localisation/changelang.js'); ?>
        <?php $this->headScript()->prependFile('/js/validators/crypt_pass.js'); ?>
        <?php $this->headScript()->prependFile('/js/validators/jquery.checkpass.js'); ?>
        <?php $this->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'); ?>
        <?php echo $this->headLink(); ?>
        <?php echo $this->headScript(); ?>
    </head>
    <body id="home">
    <header>
        <div id="header-inner">
            <!-- The name of your website -->
            <?php echo "<a href=" . $this->url(array(
                                    'controller' => 'index',
                                    'action' => 'index'))
                                    ." class=\"logo\">".$this->translate('Home')."</a>"; ?>

            <!-- Main navigation -->
            <nav>
                <ul>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'index',
                                    'action' => 'index'))
                                    .">".$this->translate('Home')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'pricing'))
                                    .">".$this->translate('Pricing')."</a>"; ?></li>
                    
                    <li><?php echo "<a>".$this->translate('Features')."</a>"; ?>
                          <ul>
                              <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'building'))
                                        .">".$this->translate('Building')."</a>"; ?></li>
                              <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'familycare'))
                                        .">".$this->translate('Familycare')."</a>"; ?></li>
                              <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'agro'))
                                        .">".$this->translate('Agro')."</a>"; ?></li>
                              <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'security'))
                                        .">".$this->translate('Security')."</a>"; ?></li>
                              <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'routes'))
                                        .">".$this->translate('Routes')."</a>"; ?></li>                              
                          </ul>
                    </li>
                    
                    <li><?php echo "<a>".$this->translate('GPS')."</a>"; ?>
                        <ul>
                            <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'gps'))
                                    .">".$this->translate('GPS navigation')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                        'controller' => 'other',
                                        'action' => 'satcom'))
                                        .">".$this->translate('Спутниковая связь')."</a>"; ?></li>
                        </ul>
                    </li>
                    <li><?php echo "<a>".$this->translate('RFID')."</a>"; ?>
                        <ul>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'monitorpers'))
                                            .">".$this->translate('Мониторинг персонала')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'monitorware'))
                                            .">".$this->translate('Мониторинг склада')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'monitorauto'))
                                            .">".$this->translate('Мониторинг авто')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'animals'))
                                            .">".$this->translate('Мониторинг животных')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'medicine'))
                                            .">".$this->translate('Медицина')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'trade'))
                                            .">".$this->translate('Торговля')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'library'))
                                            .">".$this->translate('Библиотека')."</a>"; ?></li>
                        </ul>
                    </li>
                    
                    <li><?php echo "<a>".$this->translate('About us')."</a>"; ?>
                        <ul>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'partners'))
                                            .">".$this->translate('Our partners')."</a>"; ?></li>
                            <li><?php echo "<a href=" . $this->url(array(
                                            'controller' => 'other',
                                            'action' => 'contacts'))
                                            .">".$this->translate('Contacts')."</a>"; ?></li> 
                        </ul>
                    </li>
                </ul>
            </nav>
            <!-- Secondary navigation -->
            <ul id="sec-navi">                                                                  
<?php 
require_once APPLICATION_PATH . '/configs/menu.php';
$role = Zend_Auth::getInstance()->hasIdentity()?Zend_Auth::getInstance()->getIdentity()->role:'guest';

foreach ($config[$role] as $key => $value) {?>
<li><a href="<?php echo $value; ?>"><?php echo $key; ?></a></li>
<?php } ?>

<div  id="lang-navi">    
  <dl id="sample" class="dropdown">
        <dt>
          <a href="#">
          <?php
              $url =  $_SERVER['REQUEST_URI'];
              if ($url == '' || $url == '/') {
                  $locale = new Zend_Locale(Zend_Locale::BROWSER);
                  $locale2= substr($locale, 0, 2);                  
                  echo "<img class=\"flag\" src=\"/img/$locale2.png\" />$locale2";
              } else {
                  $lang = substr($url, 1, 2);                 
                  echo "<img  class=\"flag\" src=\"/img/$lang.png\" />$lang";
              }              
          ?>
          </a>
        </dt>
        <dd>
            <ul>
                <li><a href="#"><img class="flag" src="/img/ru.png" style="vertical-align: middle;" onclick="langChange('ru');" />ru</a></li>
                <li><a href="#"><img class="flag" src="/img/en.png" style="vertical-align: middle;" onclick="langChange('en');" />en</a></li>
                <li><a href="#"><img class="flag" src="/img/fr.png" style="vertical-align: middle;" onclick="langChange('fr');" />fr</a></li>
            </ul>
        </dd>
    </dl>     
</div> 
     </ul>
                        
    
        </div><!-- /header-inner -->
    </header>
    <div id="slidermain">
         <?php //echo $this->placeholder('slidermain'); ?>
    </div>       
    <!--/wrapper -->
    <?php
        /*$translate = Zend_Registry::get('Zend_Translate');        
        $locale = $translate->getLocale();                        
        $source = APPLICATION_PATH . '/languages/'.$locale.'.mo';        
        $translate->addTranslation($source,$locale);   */
    ?>    
  <?php
                $container = new Zend_Navigation();
                $this->navigation($container);

                $container->addPage(
    //INDEX
    array(
        'label'      => $this->translate('Index'),
        'controller' => 'index',
        'action'     => 'index',
        'pages'      =>
        array(
           //OTHER index
            array(
                'label'      => $this->translate('Other'),
                'controller' => 'other',
                'action'     => 'index',
                'pages'      =>
                array(
                    //OTHER pricing
                    array(
                        'label'      => $this->translate('Pricing'),
                        'controller' => 'other',
                        'action'     => 'pricing'                        
                    ),
                    //OTHER gps navigation
                    array(
                        'label'      => $this->translate('GPS navigation'),
                        'controller' => 'other',
                        'action' => 'gps'
                    ),
                    //OTHER our partners
                    array(
                        'label'      => $this->translate('Our partnehrs'),
                        'controller' => 'other',
                        'action' => 'partners'
                    ),
                    //OTHER contacts
                    array(
                        'label'      => $this->translate('Contacts'),
                        'controller' => 'other',
                        'action' => 'contacts'
                    ),
                    //OTHER builing
                    array(
                        'label'      => $this->translate('Building'),
                        'controller' => 'other',
                        'action' => 'building'
                    ),
                    //OTHER familycare
                    array(
                        'label'      => $this->translate('Familycare'),
                        'controller' => 'other',
                        'action' => 'familycare'
                    ),
                    //OTHER agro
                    array(
                        'label'      => $this->translate('Agro'),
                        'controller' => 'other',
                        'action' => 'agro'
                    ),
                    //OTHER agro
                    array(
                        'label'      => $this->translate('Спутниковая связь'),
                        'controller' => 'other',
                        'action' => 'satcom'
                    ),
                    //OTHER personal
                    array(
                        'label'      => $this->translate('Мониторинг персонала'),
                        'controller' => 'other',
                        'action' => 'monitorpers'
                    ),
                    //OTHER auto
                    array(
                        'label'      => $this->translate('Мониторинг авто'),
                        'controller' => 'other',
                        'action' => 'monitorauto'
                    ),
                    //OTHER warehouse
                    array(
                        'label'      => $this->translate('Мониторинг склада'),
                        'controller' => 'other',
                        'action' => 'monitorware'
                    ),
                    //OTHER security
                    array(
                        'label'      => $this->translate('Безопасность'),
                        'controller' => 'other',
                        'action' => 'security'
                    ),
                    //OTHER routes
                    array(
                        'label'      => $this->translate('Маршруты'),
                        'controller' => 'other',
                        'action' => 'routes'
                    ),
                    //OTHER animals
                    array(
                        'label'      => $this->translate('Мониторинг животных'),
                        'controller' => 'other',
                        'action' => 'animals'
                    ),
                    //OTHER medicine
                    array(
                        'label'      => $this->translate('Медицина'),
                        'controller' => 'other',
                        'action' => 'medicine'
                    ),
                    //OTHER trade
                    array(
                        'label'      => $this->translate('Торговля'),
                        'controller' => 'other',
                        'action' => 'trade'
                    ),
                    //OTHER library
                    array(
                        'label'      => $this->translate('Библиотека'),
                        'controller' => 'other',
                        'action' => 'library'
                    )
                    
                )
            )
        )
    )
); ?>
    <div id="pageHeader">
		<div class="wrapper">
			<p id="breadcrumbs"><?php echo $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render(); ?></p>
			
                        <?php if ($role == 'guest') { ?>
			<p><?php echo $this->translate('Already have an account?'); ?> <a href="/<?php echo $lang; ?>/auth/login" class="button gray fancybox"><?php echo $this->translate('Sign in'); ?></a></p> 
                        <?php } ?>
		</div><!-- /wrapper -->
</div>

                <div class="content">
<?php echo $this->layout()->content ?>
    </div>
    <footer>
        <div class="wrapper">
            <div class="one-third">
                <center><h3><?php echo $this->translate('About'); ?></h3></center>

                <p><?php echo $this->translate('We are an innovative and vastly developing company. We are engaged in web development and financial services.'); ?></p>

                <ul>
                    <li><?php echo $this->translate('21 Brompton Road, London, United Kingdom'); ?></li>
                    <li><?php echo $this->translate('Tel'); ?> +44 20 3286 1827</li>
                    <li><?php echo $this->translate('Fax'); ?> +44 20 3286 1828</li>
                    <li><a href="mailto:">E-mail: info@logisticway.com</a></li>
                </ul>

                <ul id="social">
                    <li><a href="#" id="dribbble">Dribbble</a></li>
                    <li><a href="#" id="facebook">Facebook</a></li>
                    <li><a href="#" id="flickr">Flickr</a></li>
                    <li><a href="#" id="twitter">Twitter</a></li>
                    <li><a href="#" id="rss">RSS</a></li>
                </ul>
            </div>

            <div class="one-third">
                <center>
                    <h3><?php echo $this->translate('Information'); ?></h3>
                    <ul>
                        <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'index',
                                    'action' => 'index'))
                                    .">".$this->translate('Home')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'pricing'))
                                    .">".$this->translate('Pricing')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'features'))
                                    .">".$this->translate('Features')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'gps'))
                                    .">".$this->translate('GPS navigation')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'privacy'))
                                    .">".$this->translate('Privacy policy')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'terms'))
                                    .">".$this->translate('Terms and conditions')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'partners'))
                                    .">".$this->translate('Our partners')."</a>"; ?></li>
                    <li><?php echo "<a href=" . $this->url(array(
                                    'controller' => 'other',
                                    'action' => 'contacts'))
                                    .">".$this->translate('Contacts')."</a>"; ?></li> 
                    </ul>
                </center>
            </div>

            <div class="one-third last">
                <center><h3><?php echo $this->translate('Payment types'); ?></h3></center>
                <p><?php echo $this->translate('We can assept only limited number of payment types stated below'); ?></p>
                <center>
                    <img src="/img/webmoney.png" width="82" alt="webmoney" />
                    <img src="/img/bank.png" width="92" alt="bank transfer" />
                    <br />
                    <p>&nbsp; Webmoney &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php echo $this->translate('Bank transfer'); ?></p>
                </center>
            </div>
        </div><!-- /wrapper -->
    </footer>
</body>
</html>